adTempus API
PreviousUpNext
IScript::MaxRunTime Property

Gets or sets the maximum run time (in seconds) for the script

C++
__property long MaxRunTime;
C#
long MaxRunTime;
Visual Basic
Property MaxRunTime() As long
Default Value

-1

Set to -1 for no limit. If you set the MaxRunTime to 0, the Windows Scripting Host will monitor execution and terminate the script if it believes the script is hung. Often it makes an incorrect determination and terminates scripts when it shouldn't; the "0" value is therefore not recommended.

adTempus API Reference version 3.0.0.0, revised 10/30/2008